﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.Master" AutoEventWireup="true"
    CodeBehind="Wall.aspx.cs" Inherits="LiveCPEProject.wall.Wall" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="Main" ContentPlaceHolderID="MainContent" runat="Server">
    <asp:Panel ID="PanelFriend" runat="server">
        <asp:Label ID="FriendUserNameLabel" runat="server" CssClass="userName" Text=""></asp:Label>
        <asp:Label ID="FriendshipLabel" runat="server" Text="" CssClass="friendshipLabel"></asp:Label>
        <asp:LinkButton ID="BecomeFriends" runat="server" Text="<%$ Resources:LocalizedText, Common_BecomeFriends %>"
            CommandArgument="" OnClick="BecomeFriends_Click"></asp:LinkButton>
    </asp:Panel>
    <asp:RoundedCornersExtender ID="PanelFriend_RoundedCornersExtender" runat="server"
        Enabled="True" TargetControlID="PanelFriend">
    </asp:RoundedCornersExtender>
    <asp:Panel ID="PanelPostComment" runat="server">
        <asp:Label ID="WelcomingMessage" runat="server" CssClass="welcomingMessage" Text="<%$ Resources:LocalizedText, Common_Whatsup %>"></asp:Label>
        <br />
        <asp:TextBox ID="TextBoxStatus" runat="server" OnTextChanged="TextBoxStatus_Changed"
            Width="400px"></asp:TextBox>
        <asp:Label ID="SendMessageLabel" runat="server" Text="<%$ Resources:LocalizedText, Message_Send %>"
            CssClass="sendLabel"></asp:Label>
        <asp:Button ID="ButtonStatus" runat="server" OnClick="ButtonStatus_Click" CommandArgument=""
            CssClass="statusButton" />
        <asp:Button ID="ButtonTwitter" runat="server" OnClick="ButtonTwitter_Click" CssClass="twitterButton" />
        <script src="http://platform.twitter.com/widgets.js" type="text/javascript"></script>
    </asp:Panel>
    <asp:DataList ID="DataList1" runat="server" CssClass="messageList">
        <ItemTemplate>
            <asp:Label ID="Deco1" runat="server" Text='(' CssClass="userName" />
            <asp:LinkButton ID="MessageAuthorLabel" runat="server" Text='<%# Eval("SenderName") %>'
                OnClick="Redirect_Click" CommandArgument='<%# Eval("SenderName") %>' CssClass="userName" />
            <asp:Label ID="Deco2" runat="server" Text=')' CssClass="userName" />
            <asp:Label ID="MessageContentLabel" runat="server" Text='<%# Eval("MessageContent") %>'
                CssClass="messageContent" />
            <asp:LinkButton ID="AcceptRequestButton" runat="server" Text="<%$ Resources:LocalizedText, Wall_AcceptRequestButton %>"
                CommandArgument='<%# Eval("MessageID") %>' CssClass="friendRequestButton" OnClick="AcceptButton_Click"
                Visible="false" />
            <asp:LinkButton ID="RejectRequestButton" runat="server" Text="<%$ Resources:LocalizedText, Wall_RejectRequestButton %>"
                CommandArgument='<%# Eval("MessageID") %>' CssClass="friendRequestButton" OnClick="RejectButton_Click"
                Visible="false" />
            <asp:LinkButton ID="LinkUserImage" runat="server" OnClick="Redirect_Click" CommandArgument='<%# Eval("SenderName") %>'
                CssClass="userImageLink">
                <asp:Image ID="UserImage" runat="server" ImageUrl='<%# "displayImg?userName="+Eval("SenderName")%>'
                    CssClass="userImage" Width="66" Height="80" />
            </asp:LinkButton>
            <br />
            <p class="publicationDate">
                <asp:Label ID="PublicationDateDesc1" runat="server" Text="<%$ Resources:LocalizedText, Wall_PublicationAgeBefore %>" />
                <asp:Label ID="PublicationDateLabel" runat="server" Text='<%# Eval("PublicationAge") %>' />
                <asp:Label ID="PublicationDateDesc2" runat="server" Text="" />
            </p>
            <asp:Label ID="MessageID" runat="server" Text='<%# Eval("MessageID") %>' Visible="false" />
            <asp:Label ID="NumLikeLabel" runat="server" Text='<%# Eval("NumLike") %>' CssClass="numberOfLike" />
            <asp:Image ID="NumLikePicture" runat="server" ImageUrl="../img/like.png" />
            <asp:LinkButton ID="LikeLink" runat="server" OnClick="UpdateLike_Click" CommandArgument='<%# Eval("MessageID") %>'
                Text="<%$ Resources:LocalizedText, Common_Like %>" CssClass="linkButtonLike" />
            <asp:LinkButton ID="LinkComment" runat="server" OnClick="ShowComments_Click" Text="<%$ Resources:LocalizedText, Common_HideComments %>"
                CssClass="linkButtonComment" Visible="false" />
            <asp:DataList ID="DataList2" runat="server" CssClass="commentList">
                <ItemTemplate>
                    <asp:Label ID="CommentIDLabel" runat="server" Text='<%# Eval("CommentID") %>' Visible="false" />
                    <asp:Label ID="MessageIDLabel" runat="server" Text='<%# Eval("MessageID") %>' Visible="false" />
                    <asp:Label ID="Deco3" runat="server" Text='(' CssClass="userName" />
                    <asp:LinkButton ID="AuthorNameLabel" runat="server" Text='<%# Eval("AuthorName") %>'
                        OnClick="Redirect_Click" CommandArgument='<%# Eval("AuthorName") %>' CssClass="userName" />
                    <asp:Label ID="Deco4" runat="server" Text=')' CssClass="userName" />
                    <asp:Label ID="CommentContentLabel" runat="server" Text='<%# Eval("CommentContent") %>'
                        CssClass="commentContent" />
                    <asp:LinkButton ID="LinkUserImageComment" runat="server" OnClick="Redirect_Click"
                        CommandArgument='<%# Eval("AuthorName") %>' CssClass="userImageLink">
                        <asp:Image ID="UserImageComment" runat="server" ImageUrl='<%# "displayImg?userName="+Eval("AuthorName")%>'
                            CssClass="userImage" Width="50" Height="60" />
                    </asp:LinkButton>
                    <p class="publicationDate">
                        <asp:Label ID="PublicationDateDesc1" runat="server" Text="<%$ Resources:LocalizedText, Wall_PublicationAgeBefore %>" />
                        <asp:Label ID="PublicationDateLabel" runat="server" Text='<%# Eval("PublicationAge") %>' />
                        <asp:Label ID="PublicationDateDesc2" runat="server" Text="" />
                    </p>
                    <asp:Label ID="NumLikeLabel" runat="server" Text='<%# Eval("NumLike") %>' CssClass="numberOfLike" />
                    <asp:Image ID="NumLikePicture" runat="server" ImageUrl="../img/like.png" />
                    <asp:LinkButton ID="LikeCommentLink" runat="server" OnClick="UpdateCommentLike_Click"
                        CommandArgument='<%# Eval("CommentID") %>' Text="<%$ Resources:LocalizedText, Common_Like %>"
                        CssClass="linkButtonLike" />
                    <p class="separator">
                    </p>
                </ItemTemplate>
            </asp:DataList>
            <p id="commentInputZone" class="commentInputZone">
                <asp:TextBox ID="CommentContentTextBox" runat="server" Text=""></asp:TextBox>
                <asp:LinkButton ID="CommentLink" runat="server" CommandArgument='<%# Eval("MessageID") %>'
                    OnClick="SendComment_Click" Text="<%$ Resources:LocalizedText, Common_Comment %>"
                    CssClass="linkButtonComment" />
            </p>
        </ItemTemplate>
    </asp:DataList>
</asp:Content>
